package com.cn.mmd.service;

import com.cn.mmd.mapper.CourseStuAttendanceMapper;
import com.cn.mmd.model.CourseStuAttendance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/7/6 0006.
 */

@Service
public class CourseStuAttendanceServiceImpl implements CourseStuAttendanceService {

    @Autowired
    private CourseStuAttendanceMapper courseStuAttendanceMapper;

    @Override
    public CourseStuAttendance selectByCouIdStuId(CourseStuAttendance courseStuAttendance) {
        return courseStuAttendanceMapper.selectByCouIdStuId(courseStuAttendance);
    }

    @Override
    public int insertSelective(CourseStuAttendance record) {
        return courseStuAttendanceMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(CourseStuAttendance record) {
        return courseStuAttendanceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int countByCouIdStuId(CourseStuAttendance courseStuAttendance) {
        return courseStuAttendanceMapper.countByCouIdStuId(courseStuAttendance);
    }

    @Override
    public List<CourseStuAttendance> selectByCouId(CourseStuAttendance courseStuAttendance) {
        return courseStuAttendanceMapper.selectByCouId(courseStuAttendance);
    }

    @Override
    public int countLimitNum(CourseStuAttendance courseStuAttendance) {
        return courseStuAttendanceMapper.countLimitNum(courseStuAttendance);
    }

    @Override
    public int countLimitNumCou(CourseStuAttendance courseStuAttendance) {
        return courseStuAttendanceMapper.countLimitNumCou(courseStuAttendance);
    }

    @Override
    public int countLimitNumCouA(CourseStuAttendance courseStuAttendance) {
        return courseStuAttendanceMapper.countLimitNumCouA(courseStuAttendance);
    }

    @Override
    public int countLimitNumStu(CourseStuAttendance courseStuAttendance) {
        return courseStuAttendanceMapper.countLimitNumStu(courseStuAttendance);
    }

    @Override
    public int countLimitNumStuA(CourseStuAttendance courseStuAttendance) {
        return courseStuAttendanceMapper.countLimitNumStuA(courseStuAttendance);
    }

    @Override
    public int countLimitNumZ() {
        return courseStuAttendanceMapper.countLimitNumZ();
    }

    @Override
    public int countLimitNumZBy(CourseStuAttendance courseStuAttendance) {
        return courseStuAttendanceMapper.countLimitNumZBy(courseStuAttendance);
    }
}
